package u1project.common;
import java.io.Serializable;
import java.util.HashMap;

/**
 * @author oldliu
 * @since 1.0
 */
//封装所有客户端发给服务端的数据
//请求类
//包括  数据+请求操作
public class Request extends HashMap<String,Object> implements Serializable {
    private String action;//操作

    public Request(){

    }

    public Request(String action) {
        this.action = action;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "Request{" +
                "action='" + action + '\'' +super.toString()+
                '}';
    }
}
